Skip to content

#178 alb url double encoding#184

Merged
jordaneremieff merged 1 commit intoKludex:mainfrom
nathanglover:178-alb-url-double-encoding
Apr 20, 2021
Merged

#178 alb url double encoding#184
jordaneremieff merged 1 commit intoKludex:mainfrom
nathanglover:178-alb-url-double-encoding

Conversation

@nathanglover
Copy link
Copy Markdown
Contributor

@nathanglover nathanglover commented Apr 18, 2021

I believe this closes issue #178. See the issue for a discussion of the bug. Tests pass, and I have tested this on a lambda function being served by an ALB.

In short: "If the query parameters are URL-encoded, the load balancer does not decode them. You must decode them in your Lambda function."
https://docs.aws.amazon.com/elasticloadbalancing/latest/application/lambda-functions.html

Thanks to @jurasofish for initially finding the issue and writing the failing test. This PR includes his commit from #179, which can be closed if this PR is merged.

I don't know if something similar needs to be applied to the other handlers, not as familiar / not using those trigger methods.

Minor mishap with GitHub which is why #183 got closed... my bad.

@jordaneremieff
Copy link
Copy Markdown
Collaborator

Thanks!

@jordaneremieff jordaneremieff merged commit 0390502 into Kludex:main Apr 20, 2021
khamaileon pushed a commit to khamaileon/mangum that referenced this pull request Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants